package com.base.service;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.criterion.CriteriaSpecification;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.ProjectionList;
import org.hibernate.criterion.Projections;
import org.hibernate.criterion.Property;
import org.hibernate.criterion.Restrictions;
import org.hibernate.type.StringType;
import org.hibernate.type.Type;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

import tool.ClientTool;
import tool.JsonTool;
import tool.TimeTool;

import com.base.bean.*;
import com.base.dao.*;
import com.base.domain.*;
import com.hf.bean.ActivityCount;


/**
 * 恒安的行动服务类
 * 
 * @author Administrator
 * 
 */

public class ActivityHaService {

	// 单例模式 start
	private volatile static ActivityHaService instance = null;
	private ActivityHaDao actvtHaDao;
	
	
	private ActivityHaService() {
		actvtHaDao = (ActivityHaDao) _BaseDao.ac.getBean("ActivityHaDao");
		

	}
	public static ActivityHaService getInstance() {
		if (instance == null) {
			synchronized (ActivityHaService.class) {// 1
				if (instance == null) {// 2
					instance = new ActivityHaService();// 3
				}
			}
		}
		return instance;
	}
	// 单例模式 end
	public ActivityHaDao getActvtHaDao() {
		return actvtHaDao;
	}
	
	
	
	
	
	
	
	

}
